#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/7/26 11:22
# @Author  : ldh
from basic.UIParent import UIParent
from commen.page.agx.AGXIndexPage import AGXIndexPage


class AGXIndex(UIParent):

    #用户授权
    @classmethod
    def test_closeAuth(cls):
        '''用户授权'''
        if(AGXIndexPage.ifAuth()==True):
            print("用户已授权！")
        else:
            AGXIndexPage.auth()
            print("完成用户授权！")


    #关闭启动引导页
    @classmethod
    def test_closeImageView(cls):
        '''关闭启动引导页'''
        if(AGXIndexPage.ifImageView()==False):
            print("没有启动引导页")
        else:
            AGXIndexPage.closeImageView()
            print("关闭启动引导页")


    #关闭首页蒙层
    @classmethod
    def test_closeCoverLayer(cls):
        '''关闭首页蒙层'''
        if(AGXIndexPage.ifCoverLayer()==False):
            print("首页没有蒙层")
        else:
            AGXIndexPage.closeCoverLayer()
            print("关闭首页蒙层")




